package com.java.base.exercise.designmode.responsibilitychain;

/**
 * @Author RenPu
 * @Date 2022/11/12 20:16
 * @Version 1.0
 * @Description:责任链2
 **/
public class ConHandler2 extends Handler {


    public ConHandler2(Handler success) {
        super(success);
    }



    @Override
    protected void handlerRequest(Reque reque) {
        if(reque.getRequeType()==RequeType.TYPE2){
            System.out.println(reque.getName()+" this due with ConHandler2 ==2222222============");
            return;
        }
        if(success!=null){
            success.handlerRequest(reque);
        }


    }
}
